package cn.wit.test;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 请求转发
 * 
 * 请求一个servlet-》后台处理-》跳转到一个结果页面
 * @author 16604
 *
 */
public class DemoForward extends HttpServlet{
	
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		
		req.getRequestDispatcher("index.html").forward(req, resp);
		
	}

}
